package com.laiketui.admin.store.controller.indexItem;

import com.alibaba.fastjson.JSONObject;
import com.laiketui.common.api.index.IndexDataService;
import com.laiketui.common.api.index.IndexItemService;
import com.laiketui.core.domain.Result;
import com.laiketui.domain.index.IndexItem;
import com.laiketui.domain.vo.MainVo;
import com.laiketui.domain.vo.index.IndexDataVo;
import com.laiketui.domain.vo.index.IndexItemVo;
import com.laiketui.root.annotation.HttpApiMethod;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 首页数据
 *
 */
@Api(tags = "后台-商城后台小程序首页数据管理")
@RestController
@RequestMapping("/admin/index/indexItem")
public class IndexItemController {

    @Autowired
    private IndexItemService indexItemService;

    @ApiOperation("删除首页item数据")
    @RequestMapping("/deleteIndexData")
    @HttpApiMethod(apiKey = "admin.index.deleteIndexItem")
    public Result deleteIndexData(IndexItemVo vo){
        return Result.success(indexItemService.deleteIndexItem(vo));
    }


}
